<template>
  <div class="block dr-pagination">
    <el-pagination
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-size="10"
      layout="total, prev, pager, next, jumper"
      :total="40">
    </el-pagination>
  </div>
</template>
<style>
.dr-pagination {
  text-align: center;
  margin: 15px auto;
}
</style>
<script>
export default {
  name:"pagination",
  props: {
  },
  data() {
    return {
      currentPage4:1,
    };
  },
  methods: {
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  }
}
</script>